package com.speily.cloud.eureka;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @Auther: SPL
 * @Date: 2019-06-21 16:09
 * @Description:
 */
public class SpringBootStartApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先boot用main方法执行的Application启动类
        return builder.sources(EurekaApplication.class);
    }
}
